//
//  AppDelegate.swift
//  weibo
//
//  Created by guyue on 15/12/30.
//  Copyright © 2015年 guyue. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        
        //printLog(app_Key)
        
        //让启动图片缓慢一点
        //sleep(2)
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.makeKeyAndVisible()
        
        //设置为root控制器
        window?.rootViewController = SinaTabBarViewController()
        
        steupAppreance()
        
        return true
    }

    private func steupAppreance(){
        
        //这个方法在设置根控制器的时候,要设置好
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        //也可以把之前的TabBar的颜色设置放在这儿
        //先获取 TabBar然后设置 tintCoor 选中的颜色
        UITabBar.appearance().tintColor = UIColor.orangeColor()

        
    }
    
    
}

